
module LWA
  class Step
    attr_reader :step_element

    attr_reader :id
    attr_reader :command
    attr_reader :target
    attr_accessor :value
    attr_reader :by

    def initialize(step_element)
      @id = step_element.attributes[:id.to_s]
      @command = step_element.attributes[:command.to_s]
      @target = step_element.attributes[:target.to_s]
      @value = step_element.attributes[:value.to_s]
      @by = step_element.attributes[:by.to_s]
    end
  end
end